uninitialized constant Authorization::AasmRoles::AASM (NameError)
-
sethbc
restful_authentication isn't pulling in the aasm gem. as a temporary workaround you can just put:
require 'aasm'
in ApplicationController in your application.rb
-
pjammer
thanks for the fix. Will restful_authentication be updated to pull in the 'aasm' gem from github? i get the same error but i'm using http://github.com/rubyist/aasm/t... as the gem source. i know in the readme, it mentions to use the original svn source.
could this be the cause of the error? if so, how can we get a fix into the code for this?
-
aaron
thanks for the tip seth! i bumped into the same problem as nerbie too. ^_^ now it's working
-
...
Thanks!! :D That really saved me a few hours... Kind of "dumb" that restful_auth's docs don't mention it... :/
-
wooki
- Tag changed from aasm, error to aasm, authentication, error, restful, restful_authentication
I had the same problem and the fix above worked fine, but later I came across the following which also did the trick (and might be a better fix)...
http://erikonrails.snowedin.net/?p=20
script/plugin install git://github.com/rubyist/aasm.git
-
bluefuton
- Assigned user cleared.
If you have the aasm gem installed, you can add
config.gem 'aasm'
to your environment.rb to fix this.
-
bluefuton
- Assigned user set to mrflip
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.